//
//  TableViewController.h
//  asdf
//
//  Created by 尤振宇 on 16/1/8.
//  Copyright © 2016年 尤振宇. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "JHMacros.h"
#import "MJRefresh.h"
#import "Config.h"
//#import "Tool+WKParking.h"
#import "FatherViewController.h"
#import "WKApi.h"
//#import "WKHUDView.h"
#import "MBProgressHUD+Category.h"
#import "UITableView+Category.h"
#import "UIImageView+WebCache.h"

@class FatherViewController;

@interface FatherTableViewController : UITableViewController
{
//    WKApi *_listApi;
}
@property(nonatomic,strong)NSMutableArray *dataArray;
@property(nonatomic,strong)WKApi *listApi;
@property(nonatomic,assign,readonly)BOOL haveNotDataView;
@property(nonatomic,assign)BOOL isViewWillAppearUpdata;
@property(nonatomic,weak)FatherTableViewController *updataTableViewController;
@property(nonatomic,weak)FatherViewController *updataViewController;

-(void)showOrHideDataView;
-(void)configNotDataView:(UIImage *)image text:(NSString *)text;

-(void)addMj_header;
-(void)addMj_footer;
-(void)refreshData;
-(void)loadMore;
-(void)loadData;
-(void)endRefreshing;

- (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated;

- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView;
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section;
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath;
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath;
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath;
@end
